/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package NetworkRequests;

import Common.NetworkManager;
import Common.Whois;
import Enum.ConnectType.*;

/**
 *
 * @author Hmong
 */
public class CMNetSocketRequest extends NetworkTestRequest {

    public void run() {
        String strDI = Whois.GetDomainInfo("10086.cn", "whois.cnnic.cn");
        System.out.println(strDI);

        if (!strDI.startsWith("[")){
            NetworkManager.ConnectSuccessfulType |= CMNet.Socket;
            SetCommunicationSuccess(true);
        }

        NetworkManager.SetConnectTypeTested(CMNet.Socket);
    }

}
